Electronic equipment control method and device based on virtual-real cooperation, electronic equipment and storage medium

By binding data between smart toys and portable terminals and synchronizing with the cloud, the problem of limited feeding functions of AI pet toys in mobile scenarios is solved, realizing a combination of virtual and real pet growth management and improving the user's interactive experience and freedom of interaction.

CN122064274APending Publication Date: 2026-05-19SHENZHEN LUKA DR TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511958709.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-23
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

AI pet toys' feeding function is limited by their size and weight, and their usage scenarios are limited to fixed spaces, making them unsuitable for use in more mobile scenarios. Their interactive operation space is narrow and they rely on physical objects, which restricts the user's usage scenarios and interactive experience.

Method used

By establishing a binding relationship between smart toys and portable terminals, and leveraging the large screen and mobility of portable terminals, data exchange between virtual pet avatars and physical pet toys can be achieved. This allows for the identification of feedable items and synchronization of growth records. Cloud servers are used to achieve data synchronization and cross-device updates of pet growth status.

Benefits of technology

Breaking through the physical space limitations of AI pet toys, it expands the feeding function to outdoor and mobile scenarios, providing a rich interactive experience and consistent pet growth status, and enhancing the user's interactive freedom and perception experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122064274A_ABST
    Figure CN122064274A_ABST
Patent Text Reader

Abstract

The invention provides an electronic equipment control method and device based on virtual-real cooperation, electronic equipment and a storage medium, and the method comprises the steps: building a binding relation between an intelligent toy and a portable terminal, and enabling the portable terminal to generate and display a virtual pet image corresponding to the intelligent toy; in response to a pet feeding operation triggered at a first device which is an intelligent toy or a portable terminal, identifying whether the target object is a feeding object; if the target object is identified as a feeding object, creating a feeding record, and updating a pet growth record of the first equipment; the feeding record is synchronized to a second device, a pet growth record associated with the second device is updated, and the second device is a device different from the first device in the intelligent toy or the portable terminal. According to the method, cross-scene and virtual-real linkage pet feeding and growth management can be realized, and the functional scene applicability of the electronic equipment and the user interaction experience feeling are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a method, apparatus, electronic device, and storage medium for controlling electronic devices based on virtual-real collaboration. Background Technology

[0002] With the popularization of artificial intelligence technology in the consumer electronics field, artificial intelligence (AI) pet toys, with their anthropomorphic interactive experience and pet raising functions, can effectively stimulate children's sense of responsibility and companionship.

[0003] However, AI pet toys are typically large and heavy, with limited screen size and few display screens for visual information, resulting in a narrow space for touchscreen-based interactive operations. Furthermore, their feeding and growth systems heavily rely on the user holding the physical object, using the AI ​​pet toy's own camera to capture images and identify them to complete the feeding data loop. This approach is constrained by the physical characteristics of AI pet toys, limiting their usability in various mobile scenarios and hindering their use in diverse environments. Summary of the Invention

[0004] In view of this, this application provides an electronic device control method based on virtual-real collaboration to overcome the scenario limitations of AI pet toy feeding function, realize cross-scenario and virtual-real linkage pet feeding and growth management, and improve the applicability of functional scenarios and user interaction experience.

[0005] In a first aspect, this application provides a method for controlling an electronic device based on virtual-real collaboration, wherein the electronic device is a smart toy, and the method includes:

[0006] Establish a binding relationship between a smart toy and a portable terminal, wherein the portable terminal is capable of generating and displaying a virtual pet image corresponding to the smart toy;

[0007] In response to a pet feeding operation triggered at a first device, the system identifies whether the target object is a feedable item, wherein the first device is the smart toy or the portable terminal.

[0008] If the target object is identified as a feedable item, a feeding record is created, and the pet growth record of the first device is updated;

[0009] The feeding records are synchronized to the second device, and the pet growth records associated with the second device are updated. The second device is a device that is different from the first device, either the smart toy or the portable terminal.

[0010] Optionally, the step of identifying whether the target object is a feedable item in response to a pet feeding operation triggered at the first device includes:

[0011] When the first device is the portable terminal, the image data of the target object is acquired through the image acquisition module of the portable terminal, and a preset recognition model is called to extract features from the image data;

[0012] The extracted features are matched with a preset feature library of feedable foods to determine whether the target object is a feedable item.

[0013] Optionally, the step of identifying whether the target object is a feedable item in response to a pet feeding operation triggered at the first device further includes:

[0014] When the first device is the smart toy, the image data of the target object is acquired through the image acquisition device of the smart toy, and the preset recognition model is called to extract features from the image data;

[0015] The extracted features are matched with a preset feature library of feedable foods to determine whether the target object is a feedable item.

[0016] Optionally, the method further includes:

[0017] If the target object is determined to be an unfeedable item, the first device is controlled to output a prompt message to inform the user that the target object cannot be fed.

[0018] Optionally, updating the pet's growth record associated with the second device includes:

[0019] When the second device is a smart toy, the growth parameters stored inside the smart toy are updated according to the feeding record, and the smart toy is controlled to perform corresponding feedback actions based on the updated parameters.

[0020] Optionally, updating the pet's growth record associated with the second device includes:

[0021] When the second device is a portable terminal, the feeding record is synchronized to the feeding database preset by the portable terminal;

[0022] The growth data of the virtual pet image is updated based on the feeding records, and in response to changes in the growth data, at least one of the following is updated on the display interface of the portable terminal: the level, appearance, or animation of the virtual pet image.

[0023] Optionally, establishing the binding relationship between the smart toy and the portable terminal includes:

[0024] By associating user accounts, the device identifier of the smart toy is bound to the virtual pet image identifier generated in the portable terminal;

[0025] A mapping relationship between the device identifier and the virtual pet image identifier is established and stored on a cloud server to achieve data interoperability.

[0026] Secondly, this application provides a control device for an electronic device, wherein the electronic device is a smart toy, and the control device for the electronic device includes:

[0027] A data binding module is used to establish a binding relationship between a smart toy and a portable terminal, wherein the portable terminal can generate and display a virtual pet image corresponding to the smart toy;

[0028] An operation processing module is used to respond to a pet feeding operation triggered at a first device and identify whether the target object is a feedable item, wherein the first device is the smart toy or the portable terminal;

[0029] The data update module, if it identifies the target object as a feedable item, creates a feeding record and updates the pet growth record of the first device.

[0030] The data synchronization module synchronizes the feeding records to the second device and updates the pet growth records associated with the second device, wherein the second device is a device different from the first device among the smart toy and the portable terminal.

[0031] Thirdly, this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the control method of the electronic device provided in the embodiments of the present invention.

[0032] Fourthly, this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the control method of the electronic device provided in the embodiments of the present invention.

[0033] This application effectively overcomes the physical space constraints of AI pet toys due to their size and weight by leveraging the mobility and large screen advantages of portable terminals. It extends the feeding function of AI pet toys from traditional fixed home scenarios to diverse mobile scenarios such as outdoors and supermarkets, solving the problem of the limited usage scenarios for traditional AI pet toy feeding functions. Simultaneously, by constructing an interconnected architecture between the AI ​​pet toy and the portable terminal, this application fully utilizes the complementary hardware characteristics of the two devices. The AI ​​pet toy provides physical interaction and emotional companionship, while the portable terminal offers convenient touch operation and intuitive large-screen visualization capabilities, extending the interactive experience from a single physical entity to a dimension of virtual-real integration. Furthermore, real-time bidirectional synchronization of feeding records and growth data between the two devices is achieved through a cloud server, ensuring a high degree of consistency in the growth status of the AI ​​pet toy and the virtual pet, providing users with a seamless nurturing experience. Furthermore, based on unified cloud data, a digital pet avatar that combines virtual and real elements is built for users. Depending on the scenario, users can freely choose to interact physically with the AI ​​pet toy or interact lightly with a portable terminal. This retains the irreplaceable companionship and tactile feedback of physical toys, while also providing flexibility and richness in status viewing, task management, and other aspects through the virtual avatar. This effectively expands the comprehensiveness and freedom of users' perception and interaction with the AI ​​pet toy. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram illustrating the interconnection between a smart toy and a portable terminal provided in an embodiment of this application;

[0036] Figure 2 This is a schematic diagram of the feeding interaction of the smart toy provided in Embodiment 1 of this application;

[0037] Figure 3 This is another feeding interaction diagram of the smart toy provided in Embodiment 1 of this application;

[0038] Figure 4 This is a schematic diagram of the intelligent toy synchronously feeding and recording data to a portable terminal provided in Embodiment 1 of this application;

[0039] Figure 5 This is a schematic diagram of the portable terminal pet function interface provided in Embodiment 2 of this application;

[0040] Figure 6This is a schematic diagram of a convenient terminal for acquiring target object image data provided in Embodiment 2 of this application;

[0041] Figure 7 This is a schematic diagram of the feeding interaction interface of the portable terminal provided in Embodiment 2 of this application;

[0042] Figure 8 This is a schematic diagram of a portable terminal synchronously recording feeding data to a smart toy, as provided in Embodiment 2 of this application.

[0043] Figure 9 This is a flowchart illustrating the control method for an electronic device provided in an embodiment of this application;

[0044] Figure 10 This is a flowchart illustrating a control method for an electronic device provided in another embodiment of this application;

[0045] Figure 11 This is a flowchart illustrating a control method for an electronic device according to another embodiment of this application;

[0046] Figure 12 This is a flowchart illustrating a control method for an electronic device provided in another embodiment of this application;

[0047] Figure 13 This is a schematic diagram of the process for establishing a binding relationship between a smart toy and a portable terminal, provided in an embodiment of this application.

[0048] Figure 14 This is a schematic diagram of the structure of the control device of the electronic device provided in the embodiments of this application;

[0049] Figure 15 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0051] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0052] In this document, references to "embodiment" or "implementation" mean that a particular feature, structure, or characteristic described in connection with an embodiment or implementation may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0053] Please see Figure 1 and Figure 9 This application provides a control method for an electronic device, which can be a hardware carrier with data processing and interaction functions, and its specific implementation includes, but is not limited to, artificial intelligence (AI) pet toys. The control method for the electronic device includes the following steps:

[0054] S101. Establish a binding relationship between the smart toy and the portable terminal, wherein the portable terminal is capable of generating and displaying a virtual pet image corresponding to the smart toy.

[0055] Optionally, the smart toy 100 can be understood as a physical interactive device with core pet-raising functions. The smart toy 100 integrates intelligent hardware modules, including but not limited to a processor, microphone array, speaker, image acquisition device, and driving device, enabling it to perceive and respond to user interaction commands. In terms of physical form, the smart toy 100 can adopt a plush material and appearance design that simulates animal shapes, suitable for children's companionship scenarios. Furthermore, through its built-in AI interaction model, the smart toy 100 can engage in human-like voice dialogue, emotional sound effects feedback, and expressive body movements, such as simulating a pet's nodding or shaking movements, thereby establishing a lifelike interactive relationship with the user.

[0056] Optionally, the smart toy 100 has a pet feeding function, providing an immersive pet raising experience for young children. Specifically, the feeding function allows users to hold a physical object close to the image acquisition area of ​​the smart toy 100 and initiate the feeding recognition process through voice interaction. The pet toy has a preset object recognition mechanism that automatically determines whether the current object is feedable by image acquisition and feature matching. If the object is identified as feedable, a successful feeding record is generated, which is synchronized to the pet raising system of the smart toy 100 for updating the pet's status, such as supporting at least one of level upgrades, function unlocks, or behavioral feedback.

[0057] Optionally, the portable terminal 200 can be understood as a mobile electronic device with a large display screen that highly overlaps with the target user group of the smart toy 100, such as a learning device, a children's tablet computer, or a parent's smartphone. Since the visual screen area of ​​the smart toy 100 itself is limited, the touch-based interaction space is relatively cramped. The portable terminal 200, on the other hand, is typically equipped with a larger display screen, supporting richer and more intuitive human-computer interaction. The two complement each other at the hardware level. Based on this device interconnection architecture, some functions of the smart toy 100 can be further deepened and extended on the portable terminal 200, thereby compensating for the physical limitations of the smart toy 100 in terms of interactive interface and information display.

[0058] In one specific embodiment of this application, for users who simultaneously own the smart toy 100 and the portable terminal 200, a corresponding virtual digital pet avatar and data system can be created and associated for the user's smart toy 100 on the portable terminal 200. Specifically, users can apply for or activate a unique virtual digital pet avatar for their smart toy 100 through a parental control application or a dedicated function interface on the portable terminal 200. This virtual avatar and its associated growth data, feeding records, and other data systems will establish and maintain a mapping relationship with the smart toy 100 through user account or device binding, thereby achieving data interoperability and synchronization between the cloud and local storage.

[0059] Optionally, the binding relationship can be established in ways including but not limited to device identifier matching or account association. For example, if a user logs into the Smart Toy 100 distribution network system and the portable terminal 200 function module using the same registered account, the system will automatically associate devices under the same account.

[0060] In one optional embodiment of this application, the portable terminal 200 is a learning device. The learning device can be equipped with a touchscreen and a camera, and has a built-in AI model. It supports the recognition of items including plants, animals, daily necessities, and cultural relics, and simultaneously outputs learning content such as popular science knowledge, English learning, and fun stories, achieving scenario-based cognitive enlightenment for children. After purchasing the smart toy 100 and the learning device, users can link their accounts and bind the smart toy 100 to the learning device's pet growth function area. The learning device generates a virtual cartoon image that matches the physical toy's appearance. Users can click on the virtual image to view its current growth status, achieving interactive feedback between the virtual and real states.

[0061] S102. In response to a pet feeding operation triggered at a first device, identify whether the target object is a feedable item, wherein the first device is the smart toy or the portable terminal.

[0062] Optionally, the first device can be either a smart toy 100 with a physical form or a portable terminal 200 with convenient operation advantages. The triggering method for the pet feeding operation differs depending on the type of the first device. For example, when the first device is a smart toy 100, the pet feeding operation can be triggered through physical interaction. The user holds the target object close to the camera's capture area of ​​the smart toy 100 and inputs a feeding command via voice interaction, triggering the smart toy 100 to enter the feeding recognition state. As another example, when the first device is a portable terminal 200, the pet feeding operation can be implemented through convenient terminal interaction functions. The user clicks the outdoor feeding virtual icon on the terminal's pet function interface, or presses and holds the terminal's voice control button and speaks the voice command to start feeding, initiating the terminal's feeding operation process and triggering the portable terminal 200 to enter the feeding recognition state.

[0063] Optionally, the target object can be understood as a real physical item that the user intends to use for feeding the pet. Identifying whether the target object is a feedable item can be understood as using image recognition technology to verify the validity of the item the user intends to feed, providing a basis for subsequent feeding record generation and pet status updates.

[0064] Optionally, the recognition process involves the image acquisition module of the first device acquiring image data of the target object after the feeding operation is triggered; transmitting the image data to the image recognition module built into the device; the image recognition module extracting image features using a preset item recognition model; and comparing and matching the extracted features with a preset feedable item feature library, wherein the feedable item feature library contains key feature data such as the shape, texture, and color of feedable items, such as the round outline and color features of an apple, and the square or round outline and pattern features of a biscuit.

[0065] Further optionally, the identification result of the target object can be divided into two cases: if the feature matching degree is greater than or equal to the preset threshold, the target object is determined to be a feedable item, and the first device generates an identification pass signal to trigger the subsequent feeding record generation process; if the feature matching degree is less than the preset threshold, or the target object features match the blacklist of non-feedable items, it is determined to be a non-feedable item, and the first device outputs a prompt message that the item cannot be fed through its own feedback unit. For example, the smart toy 100 can prompt the user through voice, and the portable terminal 200 can prompt the user that the item cannot be fed through a screen pop-up or voice broadcast.

[0066] S103. If the target object is identified as a feedable item, a feeding record is created and the pet growth record of the first device is updated.

[0067] Optionally, the creation of the feeding record can be understood as the first device generating a data record containing key feeding information after confirming that the target object is feedable. The data record can serve as a basis for supporting the updating of the pet's growth status.

[0068] Optionally, the feeding record may include device identification information, item information, and operation time information. The device identification information records the identifier of the first device that triggered the feeding operation, ensuring clear attribution of the feeding record. The item information may include the type of feedable item and its corresponding growth value, the corresponding growth value being determined based on a preset mapping rule between items and growth values. The operation time information records the execution time of the feeding operation, providing support for the time-series management of growth records.

[0069] Optionally, the pet growth record can be understood as a data set that records the pet's development process, including key indicators such as growth value, level, or attributes. The indicators change in conjunction with preset growth rules. For example, when the growth value accumulates to a preset threshold, it triggers a level increase. The level increase unlocks new pet interaction actions. For example, the smart toy 100 can unlock new interaction action postures and unlock new scene functions. The portable terminal 200 can display the pet growth record in a visual form through the screen. For example, it can display "Level 2, growth value progress is 118 / 200" next to the virtual pet image.

[0070] Please see Figure 2 , Figure 3 and Figure 4In Embodiment 1 of this application, taking the first device as a smart toy 100 as an example, the execution process of its feeding function is as follows: The user holds a biscuit at home, places it within the camera range of the smart toy 100, and simultaneously issues the voice command "Here, have this." The smart toy 100 recognizes the user's interaction command through its voice recognition unit and then initiates the feeding recognition process. After its built-in camera captures the image of the biscuit, a recognition model deployed locally or in the cloud performs feature extraction and comparison to determine that the item belongs to a preset category of feedable food. After successful recognition, the smart toy 100 generates a successful feeding record and immediately plays a preset confirmation feedback sound effect through its voice unit, such as "Received delicious food!" At the same time, it can update the pet's growth status data stored internally, for example, updating its own growth record from "Level 1 Growth Value 92" to "Level 1 Growth Value 100." The driver controls the smart toy 100 to make a "tail-wagging" action, while simultaneously broadcasting "Little master, I've grown up again!" Simultaneously, the smart toy 100 synchronizes the generated feeding record to the portable terminal 200.

[0071] Please see Figure 5 , Figure 6 , Figure 7 and Figure 8 In Embodiment 2 of this application, the first device is a learning device, and its feeding function execution process is as follows: The user clicks the feeding function icon on the learning device's pet interface outdoors to trigger the feeding process; the user operates the learning device to capture an image of a strawberry through its camera; the learning device system calls a recognition model to analyze the strawberry image and determine that it is a feedable item; after successful recognition, the learning device screen displays a corresponding success message, such as "Feeding successful!" Simultaneously, a feeding record is generated and uploaded to update the growth status of the virtual pet image, for example, updating the virtual pet's growth value from 100 to 112, raising its level to level 2, and displaying a pop-up message "Leveled up!" on the screen. Simultaneously, the portable terminal 200 synchronizes the generated feeding record to the smart toy 100.

[0072] S104. Synchronize the feeding record to the second device and update the pet growth record associated with the second device, wherein the second device is a device different from the first device among the smart toy and the portable terminal.

[0073] Optionally, the second device can be understood as a device of a different type from the first device that triggers the feeding operation. That is, if the first device is a smart toy 100, the second device is a portable terminal 200, such as a learning machine; if the first device is a portable terminal 200, the second device is a smart toy 100.

[0074] In one specific embodiment of this application, the process of synchronizing the feeding record to the second device can be as follows: After the first device creates a feeding record, it uploads the feeding record to the cloud server through its built-in communication module; after receiving the data, the cloud server first verifies the completeness and legality of the feeding record, such as whether the device identifier, item information, and timestamp are complete, and whether the data is uploaded by a bound device; after the verification is successful, the cloud server locates the second device corresponding to the first device according to a preset device association mapping table, and pushes the feeding record to the communication module of the second device; after receiving the data, the second device completes the local storage of the feeding record, and the synchronization process ends.

[0075] Optionally, the update logic of the pet growth record associated with the second device is consistent with that of the first device. That is, based on the growth values ​​in the synchronized feeding records, the pet growth record of the second device is updated according to a unified growth value and level rule. Therefore, after the synchronization update, the pet growth status of the first device and the second device is consistent, such as the pet's level and growth value, achieving synchronous growth between the physical smart toy 100 pets and the virtual pet image.

[0076] In one specific embodiment of this application, the first device is a smart toy 100, and the second device is a portable terminal 200. After the smart toy 100 completes the feeding function process, it generates a feeding record and synchronizes it to the portable terminal 200. The virtual pet module of the portable terminal 200 updates the virtual pet's growth record according to the growth value in the record. For example, when a user feeds the smart toy 100 cookies at home, the smart toy 100 creates a record containing "cookie + 8 growth value" and updates its own growth data. At the same time, this record is synchronized to the bound learning device, and the virtual pet's growth value on the learning device is updated from 110 to 118.

[0077] In another specific embodiment of this application, the first device is a portable terminal 200, and the second device is a smart toy 100. After completing the outdoor feeding process, the portable terminal 200 generates a feeding record and synchronizes it to the smart toy 100. The storage module of the smart toy 100 updates the growth data. For example, if a user feeds an orange outdoors by taking a picture of it with a learning camera, the learning camera generates a feeding record of "orange +12 growth value" and synchronizes it to the smart toy 100 at home, where the smart toy 100 updates its growth value accordingly.

[0078] In this embodiment, by leveraging the mobility and large screen advantages of a portable terminal, the physical space constraints of AI pet toys due to their size and weight are effectively overcome. The feeding function of AI pet toys is extended from traditional fixed home scenarios to diverse mobile scenarios such as outdoors and supermarkets, solving the problem of the limited usage scenarios for the feeding function of traditional AI pet toys. Simultaneously, by constructing an interconnected architecture between the AI ​​pet toy and the portable terminal 200, this application fully utilizes the complementary hardware characteristics of the two devices. The AI ​​pet toy provides physical interaction and emotional companionship, while the portable terminal offers convenient touch operation and intuitive large-screen visualization capabilities, extending the interactive experience from a single physical entity to a dimension of virtual-real integration. Furthermore, real-time bidirectional synchronization of feeding records and growth data between the two devices is achieved through a cloud server, ensuring a high degree of consistency in the growth status of the AI ​​pet toy and the virtual pet, providing users with a coherent nurturing experience. Furthermore, based on unified cloud data, a digital pet avatar that combines virtual and real elements is built for users. Depending on the scenario, users can freely choose to interact physically with the AI ​​pet toy or interact lightly with a portable terminal. This retains the irreplaceable companionship and tactile feedback of physical toys, while also providing flexibility and richness in status viewing, task management, and other aspects through the virtual avatar. This effectively expands the comprehensiveness and freedom of users' perception and interaction with the AI ​​pet toy.

[0079] It is understood that in the specific implementation of this application, data related to target objects, user voice information, interaction data, and response data are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required. Furthermore, the collection, use, and processing of related data, as well as the training, deployment, and invocation of algorithm models, must comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0080] Please see Figure 10 The step of identifying whether the target object is a feedable item in response to a pet feeding operation triggered at the first device includes:

[0081] S1021. When the first device is the portable terminal, the image data of the target object is acquired through the image acquisition module of the portable terminal, and a preset recognition model is called to extract features from the image data.

[0082] Optionally, the target object is a physical object. The image acquisition module can be understood as a hardware unit built into the portable terminal 200 for acquiring visual information of the physical object, typically manifested as a front-facing or rear-facing camera.

[0083] Optionally, the preset recognition model can be understood as an artificial intelligence model pre-integrated into the storage module of the portable terminal 200 for extracting visual features of items. Lightweight image recognition models, such as MobileNet and EfficientNet-Lite, are preferred to ensure recognition accuracy while completing calculations quickly, avoiding terminal lag. The training data for the recognition model focuses on commonly fed and non-feedable items for children, ensuring adaptability to the target scenario.

[0084] Optionally, the invocation of the recognition model to extract features from the image data can be understood as extracting key visual information that can distinguish the category of an item from standardized image data through model algorithms. The extracted feature dimensions include, but are not limited to, the shape contour features, color features, texture features, and local features of the item, which serve as the core basis for subsequent judgment on whether the item is suitable for feeding.

[0085] In one specific embodiment of this application, when a user is shopping at a supermarket with the learning device, and wants to feed fruit to the bound smart toy 100 using the learning device, they first click the feeding icon on the learning device's pet interface to trigger the feeding operation; the learning device activates its camera, the screen displays a viewfinder, and a voice prompt says "Please take a picture of the food you want to feed"; the user places an apple in the center of the viewfinder, clicks the shooting button, and the learning device captures a clear image of the apple and completes preprocessing; the system calls the built-in MobileNet-Lite model to extract features from the apple image, generating a feature vector containing "circular outline, red body, green stem, and smooth skin", providing data support for subsequent judgment that "the apple is a feedable item".

[0086] S1022. Match the extracted features with a preset feedable food feature database to determine whether the target object is a feedable item.

[0087] Optionally, the extracted features can be understood as structured feature vectors extracted from physical object image data through a preset recognition model. These vectors contain key information that can identify the attributes of the object, and specific dimensions may include morphological features, color features, texture features, and local features.

[0088] Optionally, the preset feedable food feature library can be understood as a standardized feature database pre-stored on the local machine or cloud server of the first device. Through the association set of feedable items and feature vectors, it possesses dual verification attributes of a positive whitelist and a negative blacklist. The core components of the preset feedable food feature library include: a feedable item whitelist, covering common safe foods for children and their corresponding standard feature vectors, with each item's feature vector generated through extensive sample training to ensure coverage of different forms, such as whole apples and cut apples; and a non-feedable item blacklist, containing feature vectors of dangerous items such as sharp objects, medicines, and small parts, used to quickly eliminate safety risks. Furthermore, the preset feedable food feature library supports synchronous updates via the cloud, such as adding features of new feedable items, improving the accuracy and adaptability of the first device in identifying items.

[0089] Optionally, the specific process of matching the extracted features with a preset feature library is as follows: unify the dimension and numerical range of the extracted feature vector to be matched with the standard feature vector in the feature library to eliminate matching errors caused by differences in data format; use a lightweight vector similarity algorithm to calculate the similarity value between the feature to be matched and each item in the feature library; if the similarity between the feature to be matched and an item in the whitelist is greater than or equal to a preset threshold, it is determined to be a preliminary match; if the similarity with an item in the blacklist is greater than or equal to the preset threshold, it is directly determined to be unfeedable; if the similarity with all items is less than the preset threshold, it is determined to be an unknown item.

[0090] Optionally, after determining whether the target object is a feedable item, a judgment conclusion and processing strategy are formed based on the matching results. For example, when the target object is determined to be a feedable item, the portable terminal 200 records the item type and corresponding growth value of the matched target object, creates a corresponding feeding record, and synchronizes the feeding record to the smart toy 100. When the target object is determined to be an unfeedable item, the portable terminal 200 can output a prompt through the voice feedback unit, such as playing a voice prompt saying "This cannot be eaten," or displaying a pop-up window prompt saying "This item cannot be fed" on the display screen.

[0091] In one specific embodiment of this application, the portable terminal is a learning device. After a user takes a picture of a strawberry through the pet feeding function window of the learning device, the learning device's preset recognition model extracts feature vectors of red color, heart shape, and surface seed-like texture. If the similarity between these vectors and the standard feature vectors of strawberries in the feature library reaches 92% and is greater than or equal to a preset threshold of 85%, then the strawberry is determined to be a feedable item. The learning device records "Strawberry +12 growth value" and synchronizes the feeding record to the smart toy 100. In another specific embodiment of this application, after a user takes a picture of a small part through the pet feeding function window of the learning device, if the feature vectors of metallic luster and sharp edges extracted by the learning device's preset recognition model reach 90% and are greater than or equal to a preset threshold of 85% and are sharp objects in the feature library, then the part is determined to be an unfeedable item. The learning device then plays a voice prompt saying "Dangerous item, do not feed."

[0092] In this embodiment, when the first device is a portable terminal 200, it acquires image data of the target object through its built-in image acquisition module and calls a preset recognition model for feature extraction. The recognition model preferably employs a lightweight neural network, ensuring recognition accuracy while guaranteeing rapid computation on the terminal device, avoiding operational lag, and improving the smoothness of the user experience. The training data for the recognition model focuses on commonly fed and unfeedable items for children, thus possessing high adaptability to the target usage scenario. In this embodiment, accurate visual recognition ensures the safety and rationality of feeding operations and provides reliable and standardized data input for the virtual-real integrated pet growth system. Only feeding operations verified as valid will trigger subsequent data synchronization and status updates, ensuring the rigor of the growth logic. If an item is determined to be unfeedable, the user is immediately notified through voice prompts or screen pop-ups for safety intervention and guidance, not only achieving convenience for cross-scenario feeding but also effectively improving the safety of children during use.

[0093] Please see Figure 11 The step of identifying whether the target object is a feedable item in response to a pet feeding operation triggered at the first device includes:

[0094] S1023. When the first device is the smart toy, the image data of the target object is acquired through the image acquisition device of the smart toy, and the preset recognition model is called to extract features from the image data.

[0095] Optionally, the target object is a physical object. The image acquisition device can be understood as a hardware unit built into the smart toy 100 for capturing visual information of physical objects. It is usually a small camera, which is installed on the head of the smart toy 100, that is, the area that the user naturally aligns when feeding the toy, so that the user can place the physical object directly within the camera's acquisition range without having to adjust the angle.

[0096] Optionally, the preset recognition model can be understood as an artificial intelligence model pre-integrated into the storage module of the smart toy 100 for extracting the visual features of items. A lightweight image recognition model is preferred to ensure both recognition accuracy and rapid computation on the processor of the smart toy 100. The training data for the recognition model focuses on commonly fed and non-feedable items for children, ensuring adaptability to target scenarios.

[0097] Optionally, the invocation of the recognition model to extract features from the image data can be understood as extracting key visual information that can distinguish the category of an item from standardized image data through model algorithms. The extracted feature dimensions include, but are not limited to, the shape contour features, color features, texture features, and local features of the item, which serve as the core basis for subsequent judgment on whether the item is suitable for feeding.

[0098] In one possible embodiment of the application, a user holds a children's rice cake at home, approaches the AI ​​smart toy 100, and issues a voice interaction command, "Please eat this." The pet toy recognizes the user's voice interaction command and enters the pet feeding and training function process. The user places the rice cake 15cm in front of the camera, and the smart toy 100 completes image acquisition of the target object rice cake and preprocesses it to generate standardized data. The system calls the built-in lightweight recognition model to extract feature vectors of "round, beige, and fine surface particles" from the rice cake image, providing data support for subsequent matching and judgment that the rice cake is a feedable item.

[0099] S1024. Match the extracted features with a preset feedable food feature database to determine whether the target object is a feedable item.

[0100] Optionally, the extracted features can be understood as structured feature vectors extracted from physical object image data through a preset recognition model. These vectors contain key information that can identify the attributes of the object, and specific dimensions may include morphological features, color features, texture features, and local features.

[0101] Optionally, the preset feedable food feature library can be understood as a standardized feature database pre-stored on the smart toy 100's local or cloud server. Through the association set of feedable items and feature vectors, it possesses dual verification attributes of a positive whitelist and a negative blacklist. The core components of the preset feedable food feature library include: a feedable item whitelist, covering common safe foods for children and their corresponding standard feature vectors, with each item's feature vector generated through extensive sample training to ensure coverage of different forms, such as whole apples and cut apples; and a non-feedable item blacklist, containing feature vectors of dangerous items such as sharp objects, medicines, and small parts, used to quickly eliminate safety risks. Furthermore, the preset feedable food feature library supports synchronous updates via the cloud, such as adding features of new feedable items, improving the accuracy and adaptability of the first device in identifying items.

[0102] Optionally, the specific process of matching the extracted features with a preset feature library is as follows: unify the dimension and numerical range of the extracted feature vector to be matched with the standard feature vector in the feature library to eliminate matching errors caused by differences in data format; use a lightweight vector similarity algorithm to calculate the similarity value between the feature to be matched and each item in the feature library; if the similarity between the feature to be matched and an item in the whitelist is greater than or equal to a preset threshold, it is determined to be a preliminary match; if the similarity with an item in the blacklist is greater than or equal to the preset threshold, it is directly determined to be unfeedable; if the similarity with all items is less than the preset threshold, it is determined to be an unknown item.

[0103] Optionally, after determining whether the target object is a feedable item, a judgment conclusion and processing strategy are formed based on the matching results. For example, when the target object is determined to be a feedable item, the smart toy 100 creates a corresponding feeding record based on the item type and corresponding growth value of the target object matched with it, and synchronizes the feeding record to the portable terminal 200. When the target object is determined to be an unfeedable item, the smart toy 100 can output a prompt through the voice feedback unit, such as playing a voice prompt like "This can't be eaten, let's change the food."

[0104] In one specific embodiment of this application, a user holds a children's biscuit near the AI ​​cartoon dog smart toy 100 at home. The smart toy 100 extracts feature vectors of "yellow, square, slightly curved edges, and textured surface" through image acquisition and recognition. The smart toy 100 calls a local algorithm to match these features with the standard feature vectors of biscuits in the feedable feature library. The similarity reaches 91%, which is greater than or equal to a preset threshold of 85%. The processor of the smart toy 100 determines that the target object is a feedable item, and the smart toy 100 plays the voice message "The biscuit is delicious," while recording the item type and growth value, and synchronizing the feeding record to the portable terminal 200. If the user holds a button near the toy, and the extracted features have a similarity of 89% with small parts in the blacklist, the smart toy 100 can flash a red light and provide a voice prompt "Dangerous item, please do not feed."

[0105] In this embodiment, the image acquisition device on the smart toy 100 body ensures that the user's action of holding food to feed the child naturally overlaps with the camera's capture range. Combined with voice command-triggered interaction, the entire feeding process aligns with children's intuition, requiring no complex operation instructions or deliberate angle adjustments, lowering the barrier to entry for younger users and enhancing the immersive and fun of physical interaction. Furthermore, by integrating a lightweight recognition model and feature library locally into the smart toy 100, which employs a dual design of a whitelist of feedable items and a blacklist of non-feedable items, the toy 100 can not only accurately identify and reward safe food feeding behavior but also instantly intercept dangerous items and issue warnings, providing safety protection for children's independent operation in the home environment. In addition, the local feature library of the smart toy 100 supports synchronous updates via the cloud, allowing the smart toy 100's recognition capabilities to keep pace with the times, continuously improving its accuracy and scene adaptability. Meanwhile, the feeding records generated by the smart toy 100 are synchronized to the portable terminal 200, ensuring the consistency of the pet's growth status between the smart toy 100 and the portable terminal 200, and guaranteeing a consistent interactive experience for the user.

[0106] Optionally, the method further includes: if it is determined that the target object is an unfeedable item, then controlling the first device to output a prompt message to inform the user that the current target object cannot be fed.

[0107] In one specific embodiment of this application, the first device is a smart toy 100. The output of the prompt information can be voice prompts and light prompts to assist the user in quickly perceiving the information. The voice prompts are output through the built-in voice unit of the smart toy, and the content should be simple, straightforward, and in a friendly tone, such as "This item is not edible, let's get something edible instead." The light prompts can be implemented through the lighting device on the smart toy 100, for example, using a flashing red light to distinguish it from the solid green light indicating that the item can be fed. Furthermore, the smart toy 100 can also perform "nodding" or "shaking" actions through an action execution module to enhance the prompt effect and facilitate understanding by child users.

[0108] In another specific embodiment of this application, the first device is a portable terminal 200. The portable terminal 200 can output prompts via a combination of screen pop-ups and voice broadcasts, balancing visual and auditory guidance. For example, the screen pop-up of the portable terminal 200 can include icons, text prompts, and operation instructions, positioned in the center of the screen to ensure the user does not overlook it. The content of the voice broadcast can be consistent with the text in the pop-up, output through the terminal's speaker, forming a dual reminder. If the portable terminal 200 supports haptic feedback, a slight vibration can be triggered when the pop-up appears, further enhancing the perceived prompt.

[0109] In this embodiment of the invention, by outputting prompts, the feeding of dangerous items can be promptly prevented, avoiding safety hazards caused by children's lack of understanding of dangerous items, and adapting to the child-user attributes of the product. Simultaneously, clear prompts inform users of the operational problem and subsequent steps, avoiding the issue of simply terminating the process without feedback, thus optimizing the user experience and reducing user confusion. Furthermore, differentiated prompt formats are designed for the smart toy 100 and the portable terminal 200 to ensure that the prompts are intuitive and effective in different scenarios.

[0110] Optionally, updating the pet growth record associated with the second device includes: when the second device is a smart toy 100, updating the growth parameters stored inside the smart toy 100 according to the feeding record, and controlling the smart toy 100 to perform corresponding feedback actions based on the updated parameters.

[0111] Preferably, the smart toy 100 can provide feedback to the user in physical form regarding the identification results and changes in growth data of the target object being fed by the user. For example, when the smart toy 100 identifies that the target object the user wants to feed is a feedable item, the smart toy 100 can confirm the feeding is effective through voice broadcast of thanks, flashing lights, and body movements, such as wagging its tail or lowering its head to eat. Furthermore, when the smart toy 100 identifies that the target object the user wants to feed is a non-feedable item, it will alert the user to the risk through a warning voice and a red light, and provide feedback through body movements, such as shaking its head.

[0112] In this embodiment, the feeding function of the smart toy 100 is deeply integrated with the execution module. When the smart toy 100 updates its growth record as a second device, it can not only accurately update internal growth parameters, but also provide feedback on recognition results and growth changes through multi-dimensional physical forms. For example, when recognizing feedable items, the device uses a thank-you voice, flashing lights, and body movements such as wagging its tail and lowering its head to eat, allowing the user to intuitively perceive the effectiveness of feeding and strengthening positive interactive feedback. When recognizing non-feedable items, the device uses a warning voice, red light linkage, and head-shaking movements to form a multi-sensory risk warning. Compared with the existing single feedback form, this can significantly improve the user's perception of feedback, especially in line with the cognitive characteristics of young children, further enhancing the immersiveness and fun of the developmental interaction.

[0113] Please see Figure 12 The process of updating the pet's growth record associated with the second device includes the following steps:

[0114] S1041. When the second device is a portable terminal, the feeding record is synchronized to the feeding database preset by the portable terminal.

[0115] Optionally, the feeding record can be understood as standardized data synchronized from the first device to the smart toy 100 via the cloud, which includes growth-related data and device verification information. The growth-related data includes the growth value corresponding to the fed item and the current cumulative growth value benchmark. The device verification information is the association identifier of the first device, ensuring that the smart toy 100 only responds to records synchronized from the bound device, avoiding data confusion.

[0116] S1042. Update the growth data of the virtual pet image according to the feeding record, and in response to changes in the growth data, update at least one of the virtual pet image's level, appearance, or animation performance on the display interface of the portable terminal.

[0117] Optionally, the growth data of the virtual pet image can be understood as a set of core parameters stored in the pet interaction module of the portable terminal 200, consistent with the growth system of the smart toy 100, ensuring consistency between the virtual and real growth states of the pet. The growth data of the virtual pet image may include core growth indicators and attribute-related indicators. The core growth indicators may include cumulative growth value and current level, etc. The attribute-related indicators may include intimacy level and vitality value, etc.

[0118] Optionally, updating the growth data of the virtual pet image based on the feeding record includes: the processor of the portable terminal 200 verifying whether the device identifier of the feeding record matches the local pet identity information to avoid interference from invalid data; extracting the growth value increment in the record and superimposing it with the locally stored growth data baseline value; if the superimposed value reaches a preset level threshold, then the level parameters and unlock identifier are updated synchronously; the updated growth data is saved in the form of real-time overwrite and historical backup, and is simultaneously synchronized to the cloud to ensure data consistency across multiple devices.

[0119] Optionally, the portable terminal 200 updates the display interface of the virtual pet image in response to changes in growth data, including updating at least one of the virtual pet image's level, appearance, or animation. Specifically, after the virtual pet image's level increases, the display interface of the portable terminal 200 can be presented through numerical changes and enhanced indicators. For example, the level number next to the virtual pet image refreshes in real time, such as "Level 2" becoming "Level 3," and a semi-transparent upgrade prompt box pops up, including a level icon, the text "Upgraded!", and a growth value progress bar. The prompt box disappears automatically after 3-5 seconds, conveying key information without obscuring the pet image. The appearance update can be understood as personalized feedback based on changes in growth data, strongly correlated with unlock indicators. For example, when growth data triggers appearance unlock conditions, such as unlocking "Sports Skin" at Level 3 or unlocking "Decorative Collar" at maximum intimacy, the portable terminal 200 will switch the corresponding appearance for the virtual pet image and simultaneously pop up a "Unlock New Skin: Sports Star" prompt in the corner of the interface, enhancing the user's sense of accomplishment. Furthermore, the animation updates can be understood as dynamic feedback in response to changes in growth data, and are divided into instant feeding animations and growth node animations. For example, the instant feeding animation is triggered immediately after the data is updated, such as the virtual pet performing actions like "eating" or "happily jumping," accompanied by a "So delicious!" speech bubble. The growth node animation is triggered when the level increases, such as the virtual pet rotating around the screen, releasing colorful particle effects, and playing a short upgrade sound effect, forming multi-sensory feedback. Moreover, the animation is aesthetically pleasing to children and consistent with the virtual pet's character design.

[0120] In one specific embodiment of this application, a user feeds cookies to a smart toy 100 at home, generating a record of "cookie +8 growth value," which is synchronized to the learning device via the cloud. After verifying the record, the learning device updates the growth value of the virtual pet "Wangzai" from 122 to 130. Since this does not reach the level threshold, only an instant animation is triggered: the virtual cartoon dog image makes a "head-down eating cookie" gesture, and a bubble pops up on the screen saying "Cookies are delicious, growth value +8." When the growth value accumulates to 200, the level increases from level 2 to level 3. The learning device triggers an upgrade animation, such as a screen effect animation, the level number changes to "level 3," and the voice message "I've grown up, I've become a super dog!" plays.

[0121] In this embodiment, by interconnecting the smart toy 100 with the portable terminal 200, the large screen of the portable terminal 200 can be leveraged to transform abstract growth data into intuitive visual feedback. Simultaneously, multi-dimensional update formats adapt to different growth scenarios, real-time animations enhance daily interaction, and level and appearance updates highlight key milestones, providing a clear display of levels and growth values, thus enhancing the user's immersive experience in the development process.

[0122] Please see Figure 13 The process of establishing the binding relationship between the smart toy 100 and the portable terminal 200 includes the following steps:

[0123] S1011. By associating with the user account, bind the device identifier of the smart toy with the virtual pet image identifier generated in the portable terminal.

[0124] Optionally, the user account can be understood as the identity identifier registered by the user in the portable terminal 200 pet module or associated APP, supporting the association between the parent's end and the child's end, making it convenient for parents to manage the device binding relationship.

[0125] Optionally, the device identifier can be understood as a code set when the smart toy 100 leaves the factory, used to identify the device identity of the pet toy.

[0126] Optionally, the virtual pet image identifier can be understood as the identity information assigned when the portable terminal 200 generates the virtual pet, used to locate the virtual carrier on the portable terminal 200 side.

[0127] In one optional embodiment of this application, the step of binding the device identifier of the smart toy 100 with the virtual pet image identifier generated in the portable terminal 200 through user account association includes: the user logs into their personal user account in the pet interaction module of the portable terminal 200, ensuring the account is in a valid login state; the user manually enters the device identifier of the smart toy 100 through the "Add Device" function entry on the portable terminal 200 interface, or automatically enters it by scanning the QR code on the toy using the terminal camera; after the portable terminal 200 system verifies the validity of the device identifier, it generates a virtual pet image that matches the appearance of the smart toy 100. For example, if the physical form of the smart toy 100 is a cartoon pet dog, the virtual image is simultaneously a cartoon pet dog of the same style, and a unique virtual pet image identifier is assigned to this image; the portable terminal 200 stores the association relationship between the user account, device identifier, and virtual image identifier locally, completing the initial binding.

[0128] S1012. Establish and store the mapping relationship between the device identifier and the virtual pet image identifier on the cloud server to achieve data interoperability.

[0129] Optionally, the mapping relationship can be understood as structured data that associates device identifiers with virtual avatar identifiers.

[0130] Optionally, establishing and storing the mapping relationship between the device identifier and the virtual pet avatar identifier on the cloud server includes: after the portable terminal 200 completes local binding, it uploads the associated data of the device identifier, the virtual pet avatar identifier, and the user account to the cloud server through the communication module; after receiving the data, the cloud server first verifies the integrity and legality of the data. After the verification is passed, it establishes and stores a one-to-one mapping relationship between the device identifier and the virtual pet avatar identifier in the server database, and simultaneously records the user account information; after the cloud server completes the storage, it returns a confirmation signal of successful binding to the portable terminal 200. The portable terminal 200 can inform the user through pop-up windows and voice prompts. For example, the portable terminal 200 displays "The pet dog has been bound, go and interact with it" through a pop-up window, and at the same time, the virtual avatar is activated in the interface and can respond to basic operations.

[0131] In this embodiment of the invention, the device identifier of the smart toy 100 is bound to the virtual pet image identifier generated in the portable terminal 200 to ensure accurate matching between the identities of the smart toy 100 and the virtual pet generated in the portable terminal 200. Simultaneously, a mapping relationship between the device identifier and the virtual pet image identifier is established and stored on a cloud server, providing fundamental support for data interoperability between the smart toy 100 and the portable terminal 200. Whether it's the synchronization of records after the first device triggers a feeding operation, or the update of the growth status of the second device, the target device and virtual image can be located through the cloud mapping relationship, ensuring effective synchronization of the growth status of the smart toy 100 and the virtual pet image generated in the portable terminal 200, thereby guaranteeing the continuity of the user's interactive experience.

[0132] Please see Figure 14 This application also provides a control device for an electronic device, wherein the electronic device is a smart toy 100, and the control device for the electronic device includes:

[0133] The data binding module 201 is used to establish a binding relationship between the smart toy 100 and the portable terminal 200, wherein the portable terminal 200 can generate and display a virtual pet image corresponding to the smart toy 100;

[0134] The operation processing module 202 is used to identify whether the target object is a feedable item in response to a pet feeding operation triggered at the first device, wherein the first device is the smart toy 100 or the portable terminal 200.

[0135] The data update module 203, if the target object is identified as a feedable item, creates a feeding record and updates the pet growth record of the first device;

[0136] The data synchronization module 204 synchronizes the feeding records to the second device and updates the pet growth records associated with the second device, wherein the second device is a device different from the first device, either the smart toy 100 or the portable terminal 200.

[0137] Optionally, the operation processing module 202 is further configured to: when the first device is the portable terminal 200, acquire image data of the target object through the image acquisition module of the portable terminal 200, call a preset recognition model to extract features from the image data; match the extracted features with a preset feedable food feature library to determine whether the target object is a feedable item.

[0138] Optionally, the operation processing module 202 is further configured to: when the first device is the smart toy 100, acquire image data of the target object through the image acquisition device of the smart toy 100, call a preset recognition model to extract features from the image data; match the extracted features with a preset feedable food feature library to determine whether the target object is a feedable item.

[0139] Optionally, the operation processing module 202 is further configured to: if it is determined that the target object is an unfeedable item, control the first device to output a prompt message to inform the user that the current target object cannot be fed.

[0140] Optionally, the data update module 203 is further configured to: when the second device is a smart toy 100, update the growth parameters stored inside the smart toy 100 according to the feeding record, and control the smart toy 100 to perform corresponding feedback actions based on the updated parameters.

[0141] Optionally, the data update module 203 is further configured to: when the second device is a portable terminal 200, synchronize the feeding record to the feeding database preset by the portable terminal 200; update the growth data of the virtual pet image according to the feeding record, and in response to changes in the growth data, update at least one of the level, appearance, or animation performance of the virtual pet image on the display interface of the portable terminal 200.

[0142] Optionally, the data synchronization module 204 is further configured to: bind the device identifier of the smart toy 100 to the virtual pet image identifier generated in the portable terminal 200 through user account association; and establish and store the mapping relationship between the device identifier and the virtual pet image identifier on the cloud server to achieve data interoperability.

[0143] Please see Figure 15 This application also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the control method of the electronic device provided in the embodiments of the present invention.

[0144] Optionally, the step of identifying whether the target object is a feedable item in response to a pet feeding operation triggered at the first device includes: when the first device is the portable terminal 200, acquiring image data of the target object through the image acquisition module of the portable terminal 200, calling a preset recognition model to extract features from the image data; matching the extracted features with a preset feedable food feature library to determine whether the target object is a feedable item.

[0145] Optionally, the step of identifying whether the target object is a feedable item in response to a pet feeding operation triggered at the first device includes: when the first device is the smart toy 100, acquiring image data of the target object through the image acquisition device of the smart toy 100, calling a preset recognition model to extract features from the image data; matching the extracted features with a preset feedable food feature library to determine whether the target object is a feedable item.

[0146] Optionally, the method further includes: if it is determined that the target object is an unfeedable item, then controlling the first device to output a prompt message to inform the user that the current target object cannot be fed.

[0147] Optionally, updating the pet growth record associated with the second device includes: when the second device is a smart toy 100, updating the growth parameters stored inside the smart toy 100 according to the feeding record, and controlling the smart toy 100 to perform corresponding feedback actions based on the updated parameters.

[0148] Optionally, updating the pet growth record associated with the second device includes: when the second device is a portable terminal 200, synchronizing the feeding record to a preset feeding database of the portable terminal 200; updating the growth data of the virtual pet image according to the feeding record; and updating at least one of the level, appearance, or animation performance of the virtual pet image on the display interface of the portable terminal 200 in response to changes in the growth data.

[0149] Optionally, establishing the binding relationship between the smart toy 100 and the portable terminal 200 includes: binding the device identifier of the smart toy 100 to the virtual pet image identifier generated in the portable terminal 200 through user account association; and establishing and storing the mapping relationship between the device identifier and the virtual pet image identifier on a cloud server to achieve data interoperability.

[0150] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by the processor 301, it implements the various processes of the control method for the electronic device provided in this invention and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0151] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0152] In this application, the terms "embodiment" and "implementation" mean that a specific feature, structure, or characteristic described in connection with an embodiment can be included in at least one embodiment of this application. The appearance of these phrases in various locations throughout the specification does not necessarily refer to the same embodiment, nor are they independent or alternative embodiments mutually exclusive with other embodiments. Those skilled in the art will understand, explicitly and implicitly, that the embodiments described in this application can be combined with other embodiments. Furthermore, it should be understood that the features, structures, or characteristics described in the various embodiments of this application can be arbitrarily combined to form another embodiment that does not depart from the spirit and scope of the technical solution of this application, provided there is no contradiction between them.

[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to the above preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions to the technical solutions of this application should not depart from the spirit and scope of the technical solutions of this application.

Claims

1. A control method for electronic devices based on virtual-real collaboration, characterized in that, The electronic device is a smart toy, and the method includes: Establish a binding relationship between a smart toy and a portable terminal, wherein the portable terminal is capable of generating and displaying a virtual pet image corresponding to the smart toy; In response to a pet feeding operation triggered at a first device, the system identifies whether the target object is a feedable item, wherein the first device is the smart toy or the portable terminal. If the target object is identified as a feedable item, a feeding record is created, and the pet growth record of the first device is updated; The feeding records are synchronized to the second device, and the pet growth records associated with the second device are updated. The second device is a device that is different from the first device, either the smart toy or the portable terminal.

2. The method as described in claim 1, characterized in that, The process of responding to a pet feeding operation triggered at the first device, identifying whether the target object is a feedable item, includes: When the first device is the portable terminal, the image data of the target object is acquired through the image acquisition module of the portable terminal, and a preset recognition model is called to extract features from the image data; The extracted features are matched with a preset feature library of feedable foods to determine whether the target object is a feedable item.

3. The method as described in claim 1, characterized in that, The method of identifying whether the target object is a feedable item in response to a pet feeding operation triggered at the first device further includes: When the first device is the smart toy, the image data of the target object is acquired through the image acquisition device of the smart toy, and the preset recognition model is called to extract features from the image data; The extracted features are matched with a preset feature library of feedable foods to determine whether the target object is a feedable item.

4. The method as described in claim 2 or 3, characterized in that, The method further includes: If the target object is determined to be an unfeedable item, the first device is controlled to output a prompt message to inform the user that the target object cannot be fed.

5. The method as described in claim 1, characterized in that, The update of the pet's growth record associated with the second device includes: When the second device is a smart toy, the growth parameters stored inside the smart toy are updated according to the feeding record, and the smart toy is controlled to perform corresponding feedback actions based on the updated parameters.

6. The method as described in claim 1, characterized in that, The update of the pet's growth record associated with the second device includes: When the second device is a portable terminal, the feeding record is synchronized to the feeding database preset by the portable terminal; The growth data of the virtual pet image is updated based on the feeding records, and in response to changes in the growth data, at least one of the following is updated on the display interface of the portable terminal: the level, appearance, or animation of the virtual pet image.

7. The method as described in claim 1, characterized in that, The process of establishing a binding relationship between the smart toy and the portable terminal includes: By associating user accounts, the device identifier of the smart toy is bound to the virtual pet image identifier generated in the portable terminal; A mapping relationship between the device identifier and the virtual pet image identifier is established and stored on a cloud server to achieve data interoperability.

8. A control device for an electronic device, characterized in that, The electronic device is a smart toy, and the control device for the electronic device includes: A data binding module is used to establish a binding relationship between a smart toy and a portable terminal, wherein the portable terminal can generate and display a virtual pet image corresponding to the smart toy; An operation processing module is used to respond to a pet feeding operation triggered at a first device and identify whether the target object is a feedable item, wherein the first device is the smart toy or the portable terminal; The data update module, if it identifies the target object as a feedable item, creates a feeding record and updates the pet growth record of the first device. The data synchronization module synchronizes the feeding records to the second device and updates the pet growth records associated with the second device, wherein the second device is a device different from the first device among the smart toy and the portable terminal.

9. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the control method for an electronic device as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the control method for an electronic device as described in any one of claims 1 to 7.