CN106131145B - A kind of projecting method of mobile terminal - Google Patents

A kind of projecting method of mobile terminal Download PDF

Info

Publication number
CN106131145B
CN106131145B CN201610487843.8A CN201610487843A CN106131145B CN 106131145 B CN106131145 B CN 106131145B CN 201610487843 A CN201610487843 A CN 201610487843A CN 106131145 B CN106131145 B CN 106131145B
Authority
CN
China
Prior art keywords
mobile terminal
picture
projection device
web server
projecting method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610487843.8A
Other languages
Chinese (zh)
Other versions
CN106131145A (en
Inventor
谭代国
沐维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU THUNDERSOFT SOFTWARE TECHNOLOGY Co Ltd
Original Assignee
CHENGDU THUNDERSOFT SOFTWARE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU THUNDERSOFT SOFTWARE TECHNOLOGY Co Ltd filed Critical CHENGDU THUNDERSOFT SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201610487843.8A priority Critical patent/CN106131145B/en
Publication of CN106131145A publication Critical patent/CN106131145A/en
Application granted granted Critical
Publication of CN106131145B publication Critical patent/CN106131145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The present invention relates to mobile device application field, in particular to a kind of projecting method of mobile terminal.The present invention provides a kind of mobile terminal projecting method, it by being arranged Web server in the terminal, and projection device is linked into same local area network with one piece of mobile terminal, it connect projection device with mobile terminal by the Web server, simultaneously, Web server carries out screenshot or video recording to the picture that mobile terminal is shown by picture exhibition process, projection device obtains the terminal picture of Web server screenshot or video recording and shows, this method completely avoids the problem of need to installing the assistance application available moving picture terminal of ability in projection device in the prior art, drastically reduce the Connection Step of mobile terminal and projection device, alleviate staff's burden, there is positive effect to the development of mobile terminal projection.

Description

A kind of projecting method of mobile terminal
Technical field
The present invention relates to mobile device application field, in particular to a kind of projecting method of mobile terminal.
Background technique
With the more new development of technology, traditional mode projected using projector, because it is by place, the limit of equipment System, is no longer satisfied that people are convenient to share the demand shown, and general with mobile terminal (such as smart phone, Intelligent flat) And mobile terminal shadow casting technique is also developed, and meets demand that is convenient, quickly sharing to a certain extent.But The realization of current mobile terminal projection, needs to install an assistance application in computer or projector, and further lead to The application is crossed to receive the image information that mobile terminal transmits out.In this way, whenever changing a computer or projector, such as Fruit does not have corresponding assistance application, it is necessary to and corresponding assistance application is reinstalled, otherwise cannot achieve the function of projection, and frequently Numerous is very cumbersome repetitive operation in computer or projector installation assistance application, this has seriously affected user and has used shifting The enthusiasm of dynamic terminal projection.
Summary of the invention
It is an object of the invention to overcome that assistance application ability need to be installed in computer or projector in the prior art The problem of image information in intelligent terminal can be received, provides a kind of without additionally in projector or computer Middle installation assistance application can receive the projection pattern for playing the picture in intelligent terminal.
In order to achieve the above-mentioned object of the invention, the present invention provides following technical schemes:
A kind of projecting method of mobile terminal, includes the following steps;
Web server is built in the terminal;
Access projection device and mobile terminal in same local area network;
Default web server address is opened from projection device and proposes connection request;
Mobile terminal responds connection request, and judges whether successful connection;
After successful connection, start picture shows process;
Projection device obtains picture from Web server and projects displaying.
Further, the Web server is built using i-jetty or Tomcat.
Further, the picture exhibition process is screenshot process or video recording process.
Further, start picture was shown in the step of process, including detecting mobile terminal current picture type first Step then starts screenshot process, screenshot mode is used to provide picture for projection device if current picture state is tableaux.
Further, start picture was shown in the step of process, including detecting mobile terminal current picture type first Step then starts video recording process, video recording mode is used to provide picture for projection device if current picture state is dynamic menu.
Further, when providing picture using video recording mode, such as detect that current picture is constant more than specified time, then Current picture type is become into tableaux type from dynamic picture type.
Further, current picture type is detected using image comparison technology.
Further, the projection device is projector or computer.
Further, when picture passes to the projection device from the Web server, video information is obscured using operation and is added Close transmission.
Further, the connection request for logging in Web server is sent by the way of user name encrypted code.
Compared with prior art, beneficial effects of the present invention: the present invention provides a kind of mobile terminal projecting method, passes through Web server is set in the terminal, and projection device is linked into same local area network with one piece of mobile terminal, makes to project Equipment is connect by the Web server with mobile terminal, meanwhile, Web server is by picture exhibition process to mobile terminal exhibition The picture shown carries out screenshot or video recording, and projection device obtains the terminal picture of Web server screenshot or video recording and shows, this method The problem of need to installing the assistance application available moving picture terminal of ability in projection device in the prior art is completely avoided, greatly Amplitude reduces the Connection Step of mobile terminal and projection device, staff's burden is alleviated, to the hair of mobile terminal projection Exhibition has positive effect.
Detailed description of the invention:
Fig. 1 is the projecting method flow chart of mobile terminal provided by the invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.But this should not be interpreted as to this The range for inventing above-mentioned theme is only limitted to embodiment below, all to belong to the present invention based on the technology that the content of present invention is realized Range.
As shown in Figure 1, a kind of projecting method of mobile terminal, includes the following steps;
S100: Web server is built in the terminal;In the present embodiment, the Web server using i-jetty or Person Tomcat is built, in general, the mobile terminal uses Android system, iOS system or Windows system, the mobile terminal one As can be, the hand-held intelligents equipment such as smart phone, tablet computer.
Access projection device and mobile terminal in same local area network.
Specifically, can be using i-jetty mode in the process that mobile terminal builds Web server,
1) downloads i-jetty source code packet, compiles the jar packet of server;
2) web project is compiled into the analysable dex format zip packet of Android using dx.bat order and generates Classes.zip packet;
3) the class class under former web project is packaged into war packet ppweb.war by;
4) ppweb.war packet is put under the webapps catalogue of jetty catalogue by;
5) restarts i-jetty server.
S200: default web server address is opened from projection device and proposes connection request;Such as the address can be 192.168.43.1 it is also possible to the arbitrary address in 192.168.*.* certainly.
S201: mobile terminal responds connection request, and judges whether successful connection;In the present embodiment, using user name plus The mode of password sends the connection request for logging in Web server.
S300: after successful connection, start picture shows process;The picture exhibition process be screenshot process or record a video into Journey.Start picture was shown in the step of process, is further included the steps that detecting current picture type using image comparison technology, such as be worked as Preceding picture state is tableaux, then starts screenshot process, provide picture using screenshot mode;If current picture state is dynamic Picture then starts video recording process, provides picture using video recording mode.Such as detect current picture it is constant be more than specified time T1, Current picture type is then become into tableaux type from dynamic picture type, the specified time, T1 can be 1s ~ 5s, this implementation In example, specified time T1 is 2s, i.e., under running state of process of recording a video, if detect dynamic menu be more than 2s there is no Variation, then become screenshot process for video recording process, the mode of offer picture become screenshot from video recording;Likewise, other In embodiment, under screenshot running state of process, if detecting that picture at the appointed time changes in section T2, by screenshot Process is changed into video recording process, and specified time, T2 can be 0.25s-1s.
S400: when picture passes to the projection device from the Web server, video information encryption is obscured using operation and is passed Defeated, projection device is projected after obtaining picture from Web server and is shown.
Specifically, in other embodiments, the Web server successful connection on projection device and mobile terminal Afterwards, picture exhibition process uses screenshot mode to provide image first, i.e., starting screenshot process carries out screenshot to mobile terminal, is cutting After taking N images, adjacent two images of interception are compared and analyzed based on perceptual hash algorithm (PHA), judge that picture is It is no close, if close, prove that the image of mobile terminal is tableaux, then maintain to provide mobile terminal using screenshot mode Image;If after comparing and analyzing based on perceptual hash algorithm (PHA) to adjacent two images of interception, judging that picture is sent out Variation is given birth to, and the image for continuously occurring changing reaches preset threshold M, then concludes that the image of mobile terminal is in dynamic change State belongs to dynamic menu, and screenshot process stops at this time, starts video recording process, provides the picture of mobile terminal using video recording mode Face image;Video recording the process initiation stage, interval X frame take out picture image, equally using perceptual hash algorithm (PHA) to its into Row comparison, if continuously occurred, Y is identical, illustrates that the picture of current mobile terminal is tableaux, at this point, stop recording a video into Journey enables screenshot process, provides the picture of mobile terminal using screenshot mode.
Specifically, the picture control methods based on perceptual hash algorithm judges that mobile terminal image is tableaux or dynamic The step of picture, carries out in the following way:
1) picture is narrowed down to uniform sizes, such as 4*4 by, totally 16 pixel size, 8*8, the size or 16* of totally 64 pixels 16, totally 256 pixel sizes or 16*32, totally 512 pixel size, alternatively, any other fixed proportion and 16 pixels ~ 2048 pictures Any pixel value between element.In the present embodiment, picture is uniformly narrowed down into 8x8, in total 64 pixels, avoided because of different sizes With ratio bring picture difference;
2) simplifies color, by the color uniform modulation of picture to 256 grades of grayscale images hereinafter, in the present embodiment, by step 1) processed picture is converted to 64 grades of grayscale images;
3) calculates discrete cosine transform (DCT), i.e., picture is decomposed frequency aggregation and scalariform shape;
4) reduces DCT, retains the matrix of picture 8x8;
5) calculates the average value of 64 values;
6) is according to the DCT matrix of 8x8, according to whether being greater than 64 hash values that DCT mean value is arranged 0 or 1;
7) the comparison result combination in step 6 is constituted 64 integers by, obtains cryptographic Hash;
8) after two pictures that will be compared are calculated by above-mentioned steps, the cryptographic Hash of two picture 64 is compared, such as The different data bit of fruit is no more than 5, then it is assumed that picture is identical, otherwise it is assumed that two pictures are different.

Claims (7)

1. a kind of projecting method of mobile terminal, which is characterized in that include the following steps;
Web server is built in the terminal;
Access projection device and mobile terminal in same local area network;
Default web server address is opened from projection device and proposes connection request;
Mobile terminal responds connection request, and judges whether successful connection;
After successful connection, start picture shows process;
Projection device obtains picture from Web server and projects displaying;
Wherein, in the step of start picture shows process, include the steps that detecting mobile terminal current picture type first, such as Current picture state is tableaux, then screenshot mode is used to provide picture for projection device;If current picture state is dynamic Picture then uses video recording mode to provide picture for projection device;Moreover, such as being detected when providing picture using video recording mode Constant current picture is more than specified time, then current picture type is become tableaux type from dynamic picture type.
2. the projecting method of mobile terminal as described in claim 1, which is characterized in that the Web server uses i-jetty Or Tomcat is built.
3. the projecting method of mobile terminal as described in claim 1, which is characterized in that the picture exhibition process includes to shifting The step of screen shot or video recording of dynamic terminal display.
4. the projecting method of mobile terminal as described in claim 1, which is characterized in that current using the detection of image comparison technology Picture type.
5. the projecting method of mobile terminal as described in claim 1, which is characterized in that the projection device be projector or Computer.
6. the projecting method of mobile terminal as described in claim 1, which is characterized in that picture is passed to from the Web server When the projection device, video information encrypted transmission is obscured using operation.
7. the projecting method of mobile terminal as described in claim 1, which is characterized in that sent out by the way of user name encrypted code Send the connection request for logging in Web server.
CN201610487843.8A 2016-06-29 2016-06-29 A kind of projecting method of mobile terminal Active CN106131145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610487843.8A CN106131145B (en) 2016-06-29 2016-06-29 A kind of projecting method of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610487843.8A CN106131145B (en) 2016-06-29 2016-06-29 A kind of projecting method of mobile terminal

Publications (2)

Publication Number Publication Date
CN106131145A CN106131145A (en) 2016-11-16
CN106131145B true CN106131145B (en) 2019-04-19

Family

ID=57284165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610487843.8A Active CN106131145B (en) 2016-06-29 2016-06-29 A kind of projecting method of mobile terminal

Country Status (1)

Country Link
CN (1) CN106131145B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522619B (en) * 2020-05-03 2023-11-10 渴创技术(深圳)有限公司 Method for automatically reducing refresh frequency of extended screen based on software type and mouse pointer position

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102854717A (en) * 2012-08-20 2013-01-02 3M中国有限公司 Projector, electronic equipment and using methods on projector and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753989B (en) * 2013-12-27 2018-09-14 阿里巴巴集团控股有限公司 Screen image transmission playback method based on Web-based OS running environment and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102854717A (en) * 2012-08-20 2013-01-02 3M中国有限公司 Projector, electronic equipment and using methods on projector and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动终端办公应用之投影展示篇;wang73562;《百度文库》;20120329;第1-9页

Also Published As

Publication number Publication date
CN106131145A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN112423082B (en) Dynamic video overlay
US20160104310A1 (en) Systems and methods of blending machine-readable and human-readable elements on a display
US20130170760A1 (en) Method and System for Video Composition
US9432645B2 (en) Information processing method and electronic device
KR20170083431A (en) Apparatus and method for detecting counterfeit advertiser in wireless communication system
US10110647B2 (en) Method and apparatus for altering bandwidth consumption
US20130201328A1 (en) Multimedia processing as a service
CN111310134B (en) Screen watermark generation method, device and equipment
US20150121301A1 (en) Information processing method and electronic device
CN111831242A (en) Information display method, screen projection end, display end, storage medium and system
CN112633313B (en) Bad information identification method of network terminal and local area network terminal equipment
CN115396705A (en) Screen projection operation verification method, platform and system
CN109710866B (en) Method and device for displaying pictures in online document
CN106131145B (en) A kind of projecting method of mobile terminal
CN105718033A (en) Fatigue detection system and method
US20140146086A1 (en) Image output apparatus, image output method, and program
CN110990088B (en) Data processing method and related equipment
US20140307116A1 (en) Method and system for managing video recording and/or picture taking in a restricted environment
WO2019061185A1 (en) Method and terminal for digitally signing picture
CN107332914B (en) Terminal display method and device
EP3217644A1 (en) Information processing device
CA3186477C (en) Distributing digital cinema package (dcp) over internet
KR20140098552A (en) Method for controlling display of pointer and displaying the pointer, and apparatus thereof
CN113645486A (en) Video data processing method and device, computer equipment and storage medium
CN109151549A (en) Realize monitor video picture character adding inverse display system and method, processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant